package com.bank6677.sync.csm.domain.old;

import java.util.Date;

public class LoanRollback {
	
	public final static String VALID = "1";
	public final static String NOT_VALID = "2";
	
	private Long backId;
	private Long applyId;
	private String adminId;
	private String backInstitutionId;
	private String backStatus;
	private Date createDt;
	private Date updateDt;
	private String backType;
	private String backProStatus;
	private String backIsDeal;//是否已操作
	private String backContent;//机构反馈内容
	private String backInstitutionName;//机构名
	private String backInstitutionType;//机构类型

	public String getBackInstitutionType() {
		return backInstitutionType;
	}

	public void setBackInstitutionType(String backInstitutionType) {
		this.backInstitutionType = backInstitutionType;
	}

	public String getBackInstitutionName() {
		return backInstitutionName;
	}

	public void setBackInstitutionName(String backInstitutionName) {
		this.backInstitutionName = backInstitutionName;
	}

	public Long getBackId() {
		return backId;
	}

	public void setBackId(Long backId) {
		this.backId = backId;
	}

	public Long getApplyId() {
		return applyId;
	}

	public void setApplyId(Long applyId) {
		this.applyId = applyId;
	}

	public String getAdminId() {
		return adminId;
	}

	public void setAdminId(String adminId) {
		this.adminId = adminId == null ? null : adminId.trim();
	}

	public String getBackInstitutionId() {
		return backInstitutionId;
	}

	public void setBackInstitutionId(String backInstitutionId) {
		this.backInstitutionId = backInstitutionId == null ? null
				: backInstitutionId.trim();
	}

	public String getBackStatus() {
		return backStatus;
	}

	public void setBackStatus(String backStatus) {
		this.backStatus = backStatus == null ? null : backStatus.trim();
	}

	public Date getCreateDt() {
		return createDt;
	}

	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}

	public Date getUpdateDt() {
		return updateDt;
	}

	public void setUpdateDt(Date updateDt) {
		this.updateDt = updateDt;
	}

	public String getBackType() {
		return backType;
	}

	public void setBackType(String backType) {
		this.backType = backType == null ? null : backType.trim();
	}

	public String getBackProStatus() {
		return backProStatus;
	}

	public void setBackProStatus(String backProStatus) {
		this.backProStatus = backProStatus == null ? null : backProStatus
				.trim();
	}

	public String getBackIsDeal() {
		return backIsDeal;
	}

	public void setBackIsDeal(String backIsDeal) {
		this.backIsDeal = backIsDeal == null ? null : backIsDeal.trim();
	}

	public String getBackContent() {
		return backContent;
	}

	public void setBackContent(String backContent) {
		this.backContent = backContent == null ? null : backContent.trim();
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (!(that instanceof LoanRollback)) {
			return false;
		}
		LoanRollback other = (LoanRollback) that;
		return this.getBackId() == null ? other == null
				: this.getBackId().equals(other.getBackId())
						&& this.getApplyId() == null ? other == null
						: this.getApplyId().equals(other.getApplyId())
								&& this.getAdminId() == null ? other == null
								: this.getAdminId().equals(other.getAdminId())
										&& this.getBackInstitutionId() == null ? other == null
										: this.getBackInstitutionId().equals(
												other.getBackInstitutionId())
												&& this.getBackStatus() == null ? other == null
												: this.getBackStatus().equals(
														other.getBackStatus())
														&& this.getCreateDt() == null ? other == null
														: this.getCreateDt()
																.equals(other
																		.getCreateDt())
																&& this.getUpdateDt() == null ? other == null
																: this.getUpdateDt()
																		.equals(other
																				.getUpdateDt())
																		&& this.getBackType() == null ? other == null
																		: this.getBackType()
																				.equals(other
																						.getBackType())
																				&& this.getBackProStatus() == null ? other == null
																				: this.getBackProStatus()
																						.equals(other
																								.getBackProStatus())
																						&& this.getBackIsDeal() == null ? other == null
																						: this.getBackIsDeal()
																								.equals(other
																										.getBackIsDeal())
																								&& this.getBackContent() == null ? other == null
																								: this.getBackContent()
																										.equals(other
																												.getBackContent());
	}

	@Override
	public int hashCode() {
		int hash = 23;
		if (getBackId() != null) {
			hash *= getBackId().hashCode();
		}
		if (getApplyId() != null) {
			hash *= getApplyId().hashCode();
		}
		if (getAdminId() != null) {
			hash *= getAdminId().hashCode();
		}
		if (getBackInstitutionId() != null) {
			hash *= getBackInstitutionId().hashCode();
		}
		if (getBackStatus() != null) {
			hash *= getBackStatus().hashCode();
		}
		if (getCreateDt() != null) {
			hash *= getCreateDt().hashCode();
		}
		if (getUpdateDt() != null) {
			hash *= getUpdateDt().hashCode();
		}
		if (getBackType() != null) {
			hash *= getBackType().hashCode();
		}
		if (getBackProStatus() != null) {
			hash *= getBackProStatus().hashCode();
		}
		if (getBackIsDeal() != null) {
			hash *= getBackIsDeal().hashCode();
		}
		if (getBackContent() != null) {
			hash *= getBackContent().hashCode();
		}
		return hash;
	}
}